import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'


const routes: Array<RouteRecordRaw> = [
  // {
  //   path: '/',
  //   name: 'home',
  //   component: HomeView
  // },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/index',
    name: 'index',
    component: () => import(/* webpackChunkName: "index" */ '../views/IndexView.vue')
  },
  {
    path: '/iview',
    name: 'iview',
    component: () => import(/* webpackChunkName: "iview" */ '../views/iView.vue')
  },
  {
    path: '/lift',
    name: 'lift',
    component: () => import(/* webpackChunkName: "lift" */ '../views/LiftView.vue'),
    children:[{
      path:'/che',
      component: () => import(/* webpackChunkName: "che" */ '../components/CheCom.vue'),
    }]
  },
  {
    path: '/',
    name: 'zuoye',
    component: () => import(/* webpackChunkName: "zuoye" */ '../components/ZuoYeCom.vue')
  },
  {
    path: '/cpp',
    name: 'cpp',
    component: () => import(/* webpackChunkName: "cpp" */ '../views/CPPview.vue')
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
